<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:c="http://java.sun.com/jsp/jstl/core" version="2.0">
    <h:head>

    </h:head>
    <h:body>
        <ui:composition template="WEB-INF/facelets/LoginTemplate.xhtml">
            <ui:define name="content">
                <h:form>
                    Username: <h:inputText id="usernameInput" value="#{LoginBean.username}"/> <br/>
                    Password: <h:inputSecret id="passwordInput" value="#{LoginBean.password}"/> <br/>
                    Email:  <h:inputText id="emailInput" value="#{LoginBean.email}"/> <br/>
                    <h:selectBooleanCheckbox
                        title="admin"
                        value="#{LoginBean.admin}" >
                    </h:selectBooleanCheckbox> Admin


                    <h:commandButton id="buttonRegister" value="OK"
                                     action="#{LoginBean.register}"/>

                </h:form>
                <table>
                    <ui:repeat value="#{LoginBean.errors}" var="error">
                        <tr>
                            <td>#{error}</td>
                        </tr>
                    </ui:repeat>
                </table>
            </ui:define>
        </ui:composition>
    </h:body>
</html>

